<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="staffValidAccount.title"/></title>
    <meta name="heading" content="<fmt:message key='staffValidAccount.heading'/>"/>
    <meta name="menu" content="YAReportMenu"/>
    <link type="text/css" href="<c:url value='/scripts/jquery-ui/css/smoothness/jquery-ui-1.8.12.custom.css'/>" rel="stylesheet" />	
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-1.5.1.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-ui-1.8.12.custom.min.js'/>"></script>
	<script>
	$(function() {
		$( "#queryForm_start" ).datepicker();
		$( "#queryForm_end" ).datepicker();
		$( "#queryForm_valueDay" ).datepicker();
	});
</script>
</head>
<div id="query">
	<s:form id="queryForm" action="staffValidAccountReport" method="get">
		<s:textfield key="valueDay" required="true" cssClass="text medium"/>
		<s:textfield key="start" required="true" cssClass="text medium"/>
		<s:textfield key="end" required="true" cssClass="text medium"/>
		<li class="buttonBar bottom">
			<s:submit cssClass="button" theme="simple"/>
		</li>
	</s:form>
</div>

<display:table name="staffWithValidAccountList" defaultsort="1" defaultorder="ascending" requestURI="" class="table" id="staffWithValidAccountList" export="true" pagesize="25">
    <display:column property="staff.dept" group="1" sortable="true" titleKey="staff.dept"/>
    <display:column property="staff.staffId" media="csv excel xml pdf" titleKey="staff.staffId"/>
   	<display:column property="staff.name" sortable="true" titleKey="staff.name"/>
   	<display:column property="validAccount" sortable="true" titleKey="staffValidAccount.validAccount"/>
   	<display:column property="validAccount5W" sortable="true" titleKey="staffValidAccount.validAccount5W"/>
    <display:setProperty name="paging.banner.item_name"><fmt:message key="staffValidAccountList.staffValidAccounts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="staffValidAccountList.staffValidAccounts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="staffValidAccountList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="staffValidAccountList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="staffValidAccountList.title"/>.pdf</display:setProperty>
</display:table>


<display:table name="accountDayAssertList" defaultsort="1" defaultorder="ascending" requestURI="" class="table" id="accountDayAssertList" export="true" pagesize="25">
    <display:column property="account.id" media="csv excel xml pdf" titleKey="account.id"/>
    <display:column property="account.account" sortable="true" titleKey="account.account"/>
    <display:column property="account.name" sortable="true" titleKey="account.name"/>
    <display:column property="account.staff.staffId" sortable="true" titleKey="staff.staffId"/>
    <display:column property="account.staff.name" sortable="true" titleKey="staff.name"/>
    <display:column property="account.openDay" sortable="true" titleKey="account.openDay"/>
	<display:column property="account.transfer" sortable="true" titleKey="account.transfer"/>
	<display:column property="account.stockShNumber" sortable="true" titleKey="account.stockShNumber"/>
	<display:column property="account.stockShOpenDay" sortable="true" titleKey="account.stockShOpenDay"/>
	<display:column property="cash" sortable="true" titleKey="accountDayAssert.cash"/>
	<display:column property="fund" sortable="true" titleKey="accountDayAssert.fund"/>
	<display:column property="stock" sortable="true" titleKey="accountDayAssert.stock"/>
    <display:column property="sum" sortable="true" titleKey="accountDayAssert.sum"/>
    <display:column property="valueDay" sortable="true" titleKey="accountDayAssert.valueDay"/>
    
    <display:setProperty name="paging.banner.item_name"><fmt:message key="accountDayAssertList.accountDayAsserts"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="accountDayAssertList.accountDayAsserts"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="accountDayAssertList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="accountDayAssertList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="accountDayAssertList.title"/>.pdf</display:setProperty>
</display:table>

<script type="text/javascript">
 highlightTableRows("accountDayAssertList");
 highlightTableRows("staffWithValidAccountList");
</script>